<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

    <title>Profile</title>

    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/font-awesome/css/font-awesome.css}" rel="stylesheet"/>

    <link th:href="@{/css/animate.css}" rel="stylesheet"/>
    <link th:href="@{/css/style.css}" rel="stylesheet"/>
</head>
<body>
<div id="wrapper">
    <div th:include="common/navbar_left :: navbar_left"></div>

    <div id="page-wrapper" class="gray-bg">
        <div class="row border-bottom" th:include="common/navbar_header :: navbar_header"></div>
        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-10">
                <h2>Profile</h2>
                <ol class="breadcrumb">
                    <li>
                        <a>Home</a>
                    </li>
                    <li>
                        <span>Students</span>
                    </li>
                    <li class="active">
                        <strong>Detail</strong>
                    </li>
                </ol>
            </div>
            <div class="col-lg-2"></div>
        </div>
        <div class="wrapper wrapper-content">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>Profile Detail</h5>
                </div>
                <div class="ibox-content">
                    <form method="post" class="form-horizontal">
                        <div class="form-group"><label class="col-sm-2 control-label">User ID</label>
                            <div class="col-sm-8"><p class="form-control-static" th:text="${student.sId}"></p></div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group"><label class="col-sm-2 control-label">User Name</label>
                            <div class="col-sm-8"><p type="text" class="form-control-static" th:text="${student.name}"></p>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group"><label class="col-sm-2 control-label">Email</label>
                            <div class="col-sm-8"><p class="form-control-static" th:text="${student.email}"></p></div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group"><label class="col-sm-2 control-label">University</label>
                            <div class="col-sm-8"><p type="text" class="form-control-static" th:text="${student.university}"></p></div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group"><label class="col-sm-2 control-label">Major</label>
                            <div class="col-sm-8"><p type="text" class="form-control-static" th:text="${student.major}"></p>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group"><label class="col-sm-2 control-label">GPA</label>
                            <div class="col-sm-4"><p type="text" class="form-control-static" th:text="${student.gpa}"></p>
                            </div>

                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group"><p class="col-sm-2 control-label">Resume</p>
                            <div class="col-sm-8">
                                <textarea type="text" class="form-control" th:text="${student.resume}"></textarea>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- Mainly scripts -->
<div th:include="common/common_js :: common_js"></div>

<!-- Custom and plugin javascript -->
<script th:src="@{/js/inspinia.js}"></script>
<script th:src="@{/js/plugins/pace/pace.min.js}"></script>

<script th:inline="javascript" type="text/javascript">
    //<![CDATA[
    $(function () {

    });
    function sendMsg(){
        $.ajax({
            url : '[[@{/message/apply/friend/}]]',
            type : "POST",
            contentType: "application/json;charset=utf-8",
            data : JSON.stringify({'name':name,'passwd':passwd}),
            dataType : "text",
            success : function(result) {
                if (result == "success") {
                    obj.parents('form').submit();
                } else {
                }
            },
            error:function(msg){
                $(".notice").html('Error:'+msg);
            }
        })
    }
    //]]>
</script>
</body>

</html>
